package ooday03;

import ooday03.Animal;

public class Chick extends Animal implements Fly{
    Chick(String name,int age,String color){
        super(name,age,color);
    }
    void eat() {//重写抽象方法
        System.out.println(color + "色的" + age + "岁的鸡" + name + "在吃米。。。");
    }
    void layEggs() {
        System.out.println(color + "色的" + age + "岁的鸡" + name + "在下蛋");
    }
    public void fly(){
        System.out.println(color + "色的" + age + "岁的鸡" + name + "在起飞。。。");
    }
}
